package com.xiaoqi.store.service;

import com.xiaoqi.store.entity.AddressEntity;

import java.util.List;

/**
 * @Author Rookie Coder
 * @Description 收货地址业务接口
 * @Date
 **/
public interface AddressService {

    /*
    * @Author xiaoqi
    * @Description  添加用户收货地址
    * @return
    **/
    void addUserAddress(AddressEntity addressEntity, Integer uid, String username);

    /*
    * @Author xiaoqi
    * @Description  查询用户所有的收货地址
    * @return
    **/
    List<AddressEntity> selectUserAllAddress(Integer uid);

    /*
     * @Author xiaoqi
     * @Description  修改默认地址
     * @return
     **/
    void updateUserDefaultAddress(Integer aid, Integer uid,String username);

    /*
    * @Author xiaoqi
    * @Description  删除指定aid的收货地址
    * @return
    **/
    void deleteAddressByAid(Integer aid,Integer uid);
}
